package com.mju.feign.clients;

import com.mju.controller.common.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("email-service")
public interface EmailClient {

  // 生成激活链接
  @PostMapping("/email/generateActivationUrl")
  public JsonResult generateActivationUrl(
          @RequestParam("token") String token,@RequestParam("email") String email);
}
